import argparse
from audio import audio
from fonts import font
def main():

    parser = argparse.ArgumentParser(description='配乐下载工具')
    parser.add_argument('type',type=str,help='下载类型:[video|audio|font],viode下载视频，audio下载音频,font 字体')
    parser.add_argument('url',type=str,help='下载页面链接')
    args = parser.parse_args()

    download_type = args.type
    url = args.url

    if download_type == 'audio':
        audio.download(url)
    elif download_type == 'font':
        font.download(url)




if __name__ == '__main__':
    main()